package ru.pb.game.objects.storage;

import ru.pb.game.configs.GameServerConfig;

/**
 * @author Felixx
 *         Max 31 size
 */
public enum StorageId
{
	STORAGE_PLAYERS(true, GameServerConfig.MAX_PLAYERS, 1), // Для Игроков
	STORAGE_ITEMS(true, GameServerConfig.MAX_PLAYERS * 80 / 3, GameServerConfig.MAX_PLAYERS), // Для итемов
	STORAGE_CLANS(false, 500, 10), // Для кланов
	STORAGE_OTHER(false, 10, 10), // Другое
	STORAGE_NONE(false, -1, -1); //

	public static final StorageId[] ARRAY = values();

	private String _name;
	private boolean _gameObject;
	private int _initSize;
	private int _step;

	StorageId(boolean n, int initSize, int step)
	{
		_gameObject = n;
		_initSize = initSize;
		_step = step;
		_name = name().replace("STORAGE_", "");
	}

	public String getName()
	{
		return _name;
	}

	public boolean isGameObject()
	{
		return _gameObject;
	}

	public int getInitSize()
	{
		return _initSize;
	}

	public int getStep()
	{
		return _step;
	}
}